import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);


export default new VueRouter({
    routes: [
        {path:'/',redirect:'/home'},
        {path:'/home',component: () => import("../view/Home/home")},
        {path:'/heSuan',component: () => import("../view/HeSuan")},
        {path:'/area',component: () => import("../view/Area")},
        {path:'/prevention',component: () => import("../view/Prevention")},
        {path:'/city/:cityname',props:true,component: () => import("../view/City/City")},
        {path:'/travel',name:'Travel',component: () => import('../view/Travel')},
        {path:'/searchCity',name:'SearchCity',component: () => import('../view/SearchCity')},
    ],
    mode: 'history'
})
